-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b6781d
commit 62c0bdd
Showing
3 changed files
with
18 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
requests | ||
colorama | ||
Cython | ||
python_msvc | ||
colorama |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,19 @@ | ||
from setuptools import setup, find_packages, Extension | ||
from Cython.Build import cythonize | ||
import os | ||
|
||
long_description = "" | ||
if os.path.exists('README.md'): | ||
with open('README.md', 'r') as file: | ||
long_description = file.read() | ||
|
||
# Define Cython extension | ||
extensions = [ | ||
Extension( | ||
name="hyperscript_cli.parser", | ||
sources=["hyperscript_cli/parser.pyx"], | ||
extra_compile_args=['/O2'] | ||
) | ||
] | ||
|
||
cython_directives = {'embedsignature': True} | ||
|
||
setup( | ||
name='hyperscript-cli', | ||
version='1.0.5', | ||
version='1.0.4', | ||
description='Powerful HTTP Request Tester', | ||
long_description=long_description, | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
author='Happer', | ||
author_email='[email protected]', | ||
url='https://github.com/happer64bit/hyperscript', | ||
packages=find_packages(), | ||
install_requires=[ | ||
'requests', | ||
'pyyaml', | ||
'colorama', | ||
'Cython', | ||
'python_msvc' | ||
'colorama' | ||
], | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
|
@@ -57,5 +37,4 @@ | |
}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
ext_modules=cythonize(extensions, compiler_directives=cython_directives, language_level='3'), | ||
) |