-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (32 loc) · 1.26 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
def process_requirement(requirement):
if requirement.startswith("git+"):
dep_name = requirement.rpartition("@")[0].rpartition("/")[2]
return f"{dep_name}@{requirement}"
return requirement
print("raw requirements:", requirements)
requirements = [process_requirement(requirement) for requirement in requirements]
print("processed requirements:", requirements)
setup(
name='cloudui',
version='0.0.1',
description='Python trio and remi based library for making web-apps ...',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/flexiblecloud/cloud_ui',
download_url='https://github.com/flexiblecloud/cloud_ui/archive/master.zip',
keywords=['gui-library', 'remi', 'trio', 'service', 'application', 'platform-independent', 'ui', 'gui'],
author='Andriy Vasyltsiv',
author_email='[email protected]',
license='BSD',
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=requirements
)