-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (39 loc) · 1.52 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
import os
from setuptools import find_packages, setup
import juntagrico_custom_sub
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
def get_requirements(requirements_file):
with open(requirements_file) as f:
required = [line.split('#')[0] for line in f.read().splitlines()]
return required
setup(
name=juntagrico_custom_sub.name,
version=juntagrico_custom_sub.version,
packages=find_packages(),
include_package_data=True,
license='LPGLv3',
description='Custom composition of subscriptions in juntagrico',
long_description=README,
long_description_content_type='text/markdown',
url='https://juntagrico.org',
author='juntagrico',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.0',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP :: Site Management',
],
install_requires=get_requirements(os.path.join(ROOT_DIR, 'requirements.txt')),
)