-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsetup.py
111 lines (103 loc) · 3.72 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Setup dot py."""
from __future__ import absolute_import, print_function
# import re
from glob import glob
from os.path import basename, dirname, join, splitext
from setuptools import find_packages, setup
def read(*names, **kwargs):
"""Read description files."""
path = join(dirname(__file__), *names)
with open(path, encoding=kwargs.get('encoding', 'utf8')) as fh:
return fh.read()
# previous approach used to ignored badges in PyPI long description
# long_description = '{}\n{}'.format(
# re.compile(
# '^.. start-badges.*^.. end-badges',
# re.M | re.S,
# ).sub(
# '',
# read('README.rst'),
# ),
# re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read(join('docs', 'CHANGELOG.rst')))
# )
long_description = '{}\n{}'.format(
read('README.rst'),
read('CHANGELOG.rst'),
)
setup(
name='jmct-sampleproject',
version='0.11.3',
description='A skeleton template for Python projects.',
long_description=long_description,
long_description_content_type='text/x-rst',
license='MIT License',
author='Joao Miguel Correia Teixeira',
author_email='[email protected]',
url='https://github.com/joaomcteixeira/python-project-skeleton',
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(i))[0] for i in glob("src/*.py")],
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
# 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Microsoft',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
project_urls={
'webpage': 'https://github.com/joaomcteixeira/python-project-skeleton',
'Documentation': 'https://python-project-skeleton.readthedocs.io/en/latest/',
'Changelog': 'https://github.com/joaomcteixeira/python-project-skeleton/blob/master/CHANGELOG.rst',
'Issue Tracker': 'https://github.com/joaomcteixeira/python-project-skeleton/issues',
'Discussion Forum': 'https://github.com/joaomcteixeira/python-project-skeleton/discussions',
},
keywords=[
'ci', 'continuous-integration', 'project-template',
'project-skeleton', 'sample-project',
# eg: 'keyword1', 'keyword2', 'keyword3',
],
python_requires='>=3.7, <4',
install_requires=[
# https://stackoverflow.com/questions/14399534
'matplotlib>=3',
],
extras_require={
# eg:
# 'rst': ['docutils>=0.11'],
# ':python_version=="2.6"': ['argparse'],
},
setup_requires=[
# 'pytest-runner',
# 'setuptools_scm>=3.3.1',
],
entry_points={
'console_scripts': [
'samplecli1= sampleproject.cli_int1:main',
]
#
},
# cmdclass={'build_ext': optional_build_ext},
# ext_modules=[
# Extension(
# splitext(relpath(path, 'src').replace(os.sep, '.'))[0],
# sources=[path],
# include_dirs=[dirname(path)]
# )
# for root, _, _ in os.walk('src')
# for path in glob(join(root, '*.c'))
# ],
)