-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MAINT: switch to setup.cfg * Fix cupy numpy switching (#73) * DEV: improve backend settings * TEST: make tests run on cupy if available * TYPO: typo fixes * MAINT: Some more packaging updates * DOCS: some docs updates * MAINT: make subpackages work again
- Loading branch information
1 parent
858c68c
commit 3db35c5
Showing
11 changed files
with
54 additions
and
61 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 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 |
---|---|---|
|
@@ -12,3 +12,4 @@ venv/ | |
.idea/ | ||
**/.version | ||
**/_version.py | ||
.vscode |
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,3 +1,5 @@ | ||
include README.md | ||
include LICENSE.md | ||
include requirements.txt | ||
include pages_requirements.txt | ||
include test_requirements.txt |
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 |
---|---|---|
|
@@ -16,8 +16,8 @@ API: | |
:recursive: | ||
|
||
models | ||
backend | ||
conversions | ||
cupy_utils | ||
hyperpe | ||
utils | ||
vt | ||
|
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
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,3 +1,35 @@ | ||
[metadata] | ||
name = gwpopulation | ||
description = Unified population inference | ||
url = https://github.com/ColmTalbot/gwpopulation | ||
author = Colm Talbot | ||
author_email = [email protected] | ||
license_file = LICENSE.md | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
classifiers = | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
python_requires = ">=3.8" | ||
|
||
[options] | ||
packages = find: | ||
install_requires = file: requirements.txt | ||
|
||
[options.extras_require] | ||
cupy = cupy | ||
pages = file: pages_requirements.txt | ||
test = file: test_requirements.txt | ||
|
||
[options.packages.find] | ||
exclude = | ||
test | ||
venv | ||
priors | ||
|
||
[flake8] | ||
exclude = .git,build,dist,docs,test,*__init__.py | ||
max-line-length = 120 | ||
|
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,47 +1,5 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
def get_long_description(): | ||
"""Finds the README and reads in the description""" | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(here, "README.md")) as f: | ||
long_description = f.read() | ||
return long_description | ||
|
||
|
||
# get version info from __init__.py | ||
def readfile(filename): | ||
with open(filename) as fp: | ||
filecontents = fp.read() | ||
return filecontents | ||
|
||
|
||
long_description = get_long_description() | ||
|
||
with open("requirements.txt", "r") as ff: | ||
requirements = ff.readlines() | ||
setup( | ||
name="gwpopulation", | ||
description="Unified population inference", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/ColmTalbot/gwpopulation", | ||
author="Colm Talbot", | ||
author_email="[email protected]", | ||
license="MIT", | ||
packages=find_packages(exclude=["test", "venv", "priors"]), | ||
package_dir={"gwpopulation": "gwpopulation"}, | ||
install_requires=requirements, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires=">=3.8", | ||
) | ||
setup() |
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,4 @@ | ||
pytest-cov | ||
pre-commit | ||
jupyter | ||
nbconvert |