-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from benjeffery/packaging-update
Update packaging
- Loading branch information
Showing
12 changed files
with
117 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: mixed-line-ending | ||
- id: check-case-conflict | ||
- id: check-yaml | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.0.1 | ||
rev: v3.10.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.31.1 | ||
rev: v3.10.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py3-plus, --py37-plus] | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--config=.flake8] | ||
additional_dependencies: ["flake8-bugbear==22.3.23", "flake8-builtins==1.5.3"] | ||
additional_dependencies: ["flake8-bugbear==23.7.10", "flake8-builtins==2.1.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"setuptools_scm", | ||
"wheel", | ||
"oldest-supported-numpy" | ||
] | ||
|
||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "tsdate/_version.py" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ pytest-xdist | |
pytest-cov | ||
mpmath | ||
numdifftools | ||
setuptools>=45 | ||
twine | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[metadata] | ||
name = tsdate | ||
author = Tskit Developers | ||
author_email = admin@tskit.dev | ||
license = MIT | ||
description = Infer node ages from a tree sequence topology. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = http://pypi.python.org/pypi/tsdate | ||
project_urls = | ||
Documentation = https://tsdate.readthedocs.io/en/latest/ | ||
Changelog = https://github.com/tskit-dev/tsdate/blob/main/CHANGELOG.rst | ||
Bug Tracker = https://github.com/tskit-dev/tsdate/issues | ||
GitHub = https://github.com/tskit-dev/tsdate | ||
classifiers = | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3 :: Only | ||
License :: OSI Approved :: MIT License | ||
Development Status :: 3 - Alpha | ||
Environment :: Other Environment | ||
Intended Audience :: Science/Research | ||
Operating System :: POSIX | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
Topic :: Scientific/Engineering | ||
Topic :: Scientific/Engineering :: Bio-Informatics | ||
keywords = | ||
population genetics | ||
tree sequence | ||
ancestral recombination graph | ||
evolutionary tree | ||
inference | ||
dating | ||
tsdate | ||
platforms = | ||
POSIX | ||
Windows | ||
MacOS X | ||
|
||
[options] | ||
packages = tsdate | ||
python_requires = >=3.7 | ||
include_package_data = True | ||
install_requires = | ||
numpy | ||
tskit>=0.2.3 | ||
scipy>1.2.3 | ||
numba>=0.46.0 | ||
tqdm | ||
appdirs | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
tsdate=tsdate.__main__:main | ||
|
||
[tool:pytest] | ||
testpaths = | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,8 @@ | ||
from setuptools import setup | ||
|
||
with open("README.md") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
# The package name along with all the other metadata is specified in setup.cfg | ||
# However, GitHub's dependency graph can't see the package unless we put this here. | ||
name="tsdate", | ||
author="Anthony Wilder Wohns and Yan Wong", | ||
author_email="awohns@gmail.com", | ||
description="Infer node ages from a tree sequence topology", | ||
long_description=long_description, | ||
packages=["tsdate"], | ||
long_description_content_type="text/markdown", | ||
url="http://pypi.python.org/pypi/tsdate", | ||
python_requires=">=3.7", | ||
entry_points={ | ||
"console_scripts": [ | ||
"tsdate=tsdate.__main__:main", | ||
] | ||
}, | ||
setup_requires=["setuptools_scm"], | ||
install_requires=[ | ||
"numpy", | ||
"tskit>=0.2.3", | ||
"scipy>1.2.3", | ||
"numba>=0.46.0", | ||
"tqdm", | ||
"appdirs", | ||
], | ||
project_urls={ | ||
"Source": "https://github.com/awohns/tsdate", | ||
"Bug Reports": "https://github.com/awohns/tsdate/issues", | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.7", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX", | ||
], | ||
use_scm_version={"write_to": "tsdate/_version.py"}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters