-
Notifications
You must be signed in to change notification settings - Fork 264
Move from setup.py to pyproject.toml #1180
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 7 commits
5a3fb22
6bd93c6
8246640
05c823b
58fd978
234fb2d
80ced98
7658559
ad20814
677038e
9ea34c6
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 |
|---|---|---|
|
|
@@ -12,4 +12,6 @@ python: | |
| install: | ||
| - method: pip | ||
| path: . | ||
| - requirements: doc/requirements_docs.txt | ||
| extra_requirements: | ||
| - docs | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,17 +13,16 @@ | |
|
|
||
| import os | ||
| import sys | ||
| import re | ||
|
|
||
| from packaging.version import Version | ||
|
|
||
| with open("../../neo/version.py") as fp: | ||
| d = {} | ||
| exec(fp.read(), d) | ||
| neo_release = d['version'] | ||
| with open('../../pyproject.toml', mode='r') as f: | ||
| txt = f.read() | ||
| neo_release = re.findall('version = "(\S+)"', txt)[0] | ||
|
|
||
| neo_version = '.'.join((str(e) for e in Version(neo_release).release[:2])) | ||
|
|
||
|
|
||
| AUTHORS = 'Neo authors and contributors <[email protected]>' | ||
|
|
||
| # If extensions (or modules to document with autodoc) are in another directory, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,5 +4,3 @@ channels: | |
| dependencies: | ||
| - datalad | ||
| - pip | ||
| - pip: | ||
| - -r requirements_testing.txt | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| [project] | ||
| name = "neo" | ||
| version = "0.12.0.dev0" | ||
|
|
||
| authors = [{name = "Neo authors and contributors"}] | ||
|
|
||
| description = "Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats" | ||
|
|
||
| readme = "README.rst" | ||
|
Member
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. I presume this replaces the "long_description" field?
Contributor
Author
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. description is the short one from what I understand.
Contributor
Author
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. This readme is also the readme in pypi. So yes this replace the long description. |
||
| requires-python = ">=3.7" | ||
| license = {text = "BSD 3-Clause License"} | ||
| classifiers = [ | ||
| "Programming Language :: Python :: 3", | ||
| "Operating System :: OS Independent", | ||
| "Intended Audience :: Science/Research", | ||
| "Natural Language :: English", | ||
| "Topic :: Scientific/Engineering", | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| "packaging", | ||
| "numpy>=1.18.5", | ||
| "quantities>=0.12.1", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| "Homepage" = "https://neuralensemble.org/neo" | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools>=62.0"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["neo"] | ||
| package-dir = {"neo" = "neo"} | ||
|
|
||
| [project.optional-dependencies] | ||
|
|
||
| test = [ | ||
| "pytest", | ||
| "pytest-cov", | ||
|
|
||
| # datalad # this dependency is covered by conda (environment_testing.yml) | ||
| "scipy>=1.0.0", | ||
| "pyedflib", | ||
| "h5py", | ||
| "igor", | ||
| "klusta", | ||
| "tqdm", | ||
| "nixio", | ||
| "matplotlib", | ||
| "ipython", | ||
| "coverage", | ||
| "coveralls", | ||
| "pillow", | ||
| "sonpy", | ||
| "pynwb", | ||
| "probeinterface", | ||
| ] | ||
|
|
||
| docs = [ | ||
| "docutils<0.18", | ||
| ] | ||
|
|
||
| igorproio = ['igor'] | ||
| kwikio = ['klusta'] | ||
| neomatlabio = ['scipy>=1.0.0'] | ||
| nixio = ['nixio>=1.5.0'] | ||
| stimfitio = ['stfio'] | ||
| tiffio = ['pillow'] | ||
| edf = ['pyedflib'] | ||
| ced = ['sonpy'] | ||
| nwb = ['pynwb'] | ||
| maxwell = ['h5py'] | ||
| biocam = ['h5py'] | ||
|
|
||
| # TODO [all] | ||
|
||
|
|
||
|
|
||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,4 @@ | ||
| #!/usr/bin/env python | ||
| import setuptools | ||
|
|
||
| from setuptools import setup, find_packages | ||
| import os | ||
|
|
||
| long_description = open("README.rst").read() | ||
| install_requires = ['packaging', | ||
| 'numpy>=1.18.5', | ||
| 'quantities>=0.12.1'] | ||
| extras_require = { | ||
| 'igorproio': ['igor'], | ||
| 'kwikio': ['klusta'], | ||
| 'neomatlabio': ['scipy>=1.0.0'], | ||
| 'nixio': ['nixio>=1.5.0'], | ||
| 'stimfitio': ['stfio'], | ||
| 'tiffio': ['pillow'], | ||
| 'edf': ['pyedflib'], | ||
| 'ced': ['sonpy'], | ||
| 'nwb': ['pynwb'], | ||
| 'maxwell': ['h5py'], | ||
| 'biocam': ['h5py'], | ||
| } | ||
| extras_require["all"] = sum(extras_require.values(), []) | ||
|
|
||
| with open("neo/version.py") as fp: | ||
| d = {} | ||
| exec(fp.read(), d) | ||
| neo_version = d['version'] | ||
|
|
||
| setup( | ||
| name="neo", | ||
| version=neo_version, | ||
| packages=find_packages(), | ||
| install_requires=install_requires, | ||
| extras_require=extras_require, | ||
| author="Neo authors and contributors", | ||
| author_email="[email protected]", | ||
| description="Neo is a package for representing electrophysiology data in " | ||
| "Python, together with support for reading a wide range of " | ||
| "neurophysiology file formats", | ||
| long_description=long_description, | ||
| license="BSD-3-Clause", | ||
| url='https://neuralensemble.org/neo', | ||
| python_requires=">=3.7", | ||
| classifiers=[ | ||
| 'Development Status :: 4 - Beta', | ||
| 'Intended Audience :: Science/Research', | ||
| 'License :: OSI Approved :: BSD License', | ||
| 'Natural Language :: English', | ||
| 'Operating System :: OS Independent', | ||
| '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', | ||
| 'Topic :: Scientific/Engineering'] | ||
| ) | ||
| if __name__ == "__main__": | ||
| setuptools.setup() |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.