-
Notifications
You must be signed in to change notification settings - Fork 21
Support Python 3.12 with CI, move tests to top level #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
50ad60b
876f895
faed7be
d50dd9d
52c4b80
2fafe83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Tests on PR | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
validate: | ||
uses: Billingegroup/release-scripts/.github/workflows/_tests-on-pr.yml@v0 | ||
with: | ||
project: diffpy.srfit | ||
c_extension: false | ||
headless: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: diffpy.srfit | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3 | ||
- pip |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,58 @@ | ||
[build-system] | ||
requires = ["setuptools>=62.0", "setuptools-git-versioning>=2.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "diffpy.srfit" | ||
dynamic=['version', 'dependencies'] | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Topic :: Scientific/Engineering :: Physics', | ||
'Topic :: Scientific/Engineering :: Chemistry', | ||
] | ||
|
||
|
||
[tool.setuptools-git-versioning] | ||
enabled = true | ||
template = "{tag}" | ||
dev_template = "{tag}" | ||
dirty_template = "{tag}" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] # list of folders that contain the packages (["."] by default) | ||
include = ["*"] # package names should match these glob patterns (["*"] by default) | ||
exclude = [] # exclude packages matching these glob patterns (empty by default) | ||
namespaces = false # to disable scanning PEP 420 namespaces (true by default) | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements/run.txt"]} | ||
|
||
[tool.black] | ||
line-length = 115 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.git\ | ||
\.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build/ | ||
| \.rst | ||
| \.txt | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
# The following are specific to Black, you probably don't want those. | ||
| blib2to3 | ||
| tests/data/ | ||
| hooks/post_gen_project.py$ | ||
| .*\.py$ | ||
| .*\.toml$ | ||
| tests/data | ||
)/ | ||
''' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scipy | ||
numpy | ||
matplotlib | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. I think it is ok to add those other dependencies. For this particular package we could, if we want, have it split out into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have the core packages under Since our centralized GH CI workflow files need to be updated: from:
to:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, good idea |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
flake8 | ||
pytest | ||
codecov | ||
coverage | ||
pytest-cov | ||
pytest-env |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Providing just a basic setup to build from the sources.