-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (52 loc) · 1.73 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
import re
from setuptools import setup
with open("fstop/__init__.py") as init:
content = init.read()
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
content, re.MULTILINE,
).group(1)
author = re.search(
r'^__author__\s*=\s*[\'"]([^\'"]*)[\'"]',
content, re.MULTILINE,
).group(1)
name = re.search(
r'^__title__\s*=\s*[\'"]([^\'"]*)[\'"]',
content, re.MULTILINE,
).group(1)
license = re.search(
r'^__license__\s*=\s*[\'"]([^\'"]*)[\'"]',
content, re.MULTILINE,
).group(1)
with open('requirements.txt') as requirements:
deps = requirements.read().splitlines()
with open("README.md") as readme:
readme = readme.read()
setup(
name = name,
author = author,
version = version,
description = "A basic scripting-lang for image-manipulation in python",
long_description = readme,
long_description_content_type = "text/markdown",
license = license,
url = "https://github.com/f-stop-lang/f-stop-rply/tree/iteration",
project_urls = {
"Repository" : "https://github.com/f-stop-lang/f-stop-rply/tree/iteration",
"Issue tracker": "https://github.com/f-stop-lang/f-stop-rply/issues",
},
classifiers = [
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries',
],
include_package_data = True,
packages = ['fstop'],
install_requires = deps,
zip_safe = True,
python_requires = '>=3.8'
)