-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
67 lines (56 loc) · 1.89 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import codecs
from pathlib import Path
from setuptools import setup
_PKG_ROOT = Path(__file__).resolve().parent
def readme_md():
fname = _PKG_ROOT.joinpath("README.md")
with codecs.open(fname, encoding="utf8") as fptr:
return fptr.read()
def version():
fname = _PKG_ROOT.joinpath("VERSION")
with open(fname, "r") as fptr:
return fptr.read().strip()
# Changes made to python_requires should be propagated to all tox.ini and all
# GitHub Action config files.
python_requires = ">=3.7"
code_requires = ["importlib-metadata;python_version<'3.8'"]
test_requires = ["numpy"]
install_requires = code_requires + test_requires
package_data = {"mytemplate": ["tests/*.csv",
"PkgData/*.json",
"subA/tests/*.csv"]}
project_urls = {
"Source": "Git Hub",
"Documentation": "httpx://mytemplate.org",
"Tracker": "Git Hub Issues",
}
setup(
name="mytemplate",
version=version(),
author="me",
author_email="me@me.org",
maintainer="me",
maintainer_email="me@me.org",
package_dir={"": "src"},
package_data=package_data,
url="https://mytemplate.org",
project_urls=project_urls,
license="MIT",
description="Personal, custom tools for stuff",
long_description=readme_md(),
long_description_content_type="text/markdown",
python_requires=python_requires,
install_requires=install_requires,
keywords="My Template Stuff",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: POSIX",
"Topic :: Scientific/Engineering",
],
)