This repository has been archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (43 loc) · 1.47 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
from os import path
from setuptools import setup as _setup
from setuptools import find_packages as _find_packages
from krautmarkt.version import __version__
# read the contents of your README file
__CWD__ = path.abspath(path.dirname(__file__))
with open(path.join(__CWD__, 'README.md'), encoding='utf-8') as fp:
PACKAGE_LONG_DESCRIPTION = fp.read()
PACKAGE_NAME = 'krautmarkt'
PACKAGE_VERSION = __version__
PACKAGE_DESCRIPTION = 'Your Kraut management system'
PACKAGE_URL = 'https://github.com/DataHerb/krautmarkt'
def _requirements():
return [r for r in open('requirements.txt')]
def setup():
_setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description=PACKAGE_DESCRIPTION,
long_description=PACKAGE_LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url=PACKAGE_URL,
author='Lei Ma',
author_email='[email protected]',
license='MIT',
packages=_find_packages(exclude=('tests',)),
install_requires=_requirements(),
include_package_data=True,
extras_require={
"docs": ["sphinx>=2.4.1", "sphinx-rtd-theme>=0.4.3"]
},
entry_points={
"console_scripts": [
"krautmarkt=krautmarkt.create:krautmarkt"
]
},
test_suite='nose.collector',
tests_require=['nose'],
zip_safe=False
)
if __name__ == '__main__':
setup()
print("Packages: ", _find_packages(exclude=('tests',)))