|
1 | 1 | #!/usr/bin/env python3 |
2 | 2 |
|
3 | | -from setuptools import setup |
4 | | -from pathlib import Path |
5 | | - |
6 | | -try: |
7 | | - from Cython.Build import cythonize |
8 | | -except ImportError: |
9 | | - def cythonize(*_args): |
10 | | - return [] |
11 | | - |
12 | | -setup_dir = Path(__file__).parent |
| 3 | +from setuptools import setup, Extension |
13 | 4 |
|
14 | 5 | setup( |
15 | | - name='keybox', |
16 | | - version=(setup_dir / 'VERSION').read_text().strip(), |
17 | | - description='Simple password manager. Stores secrets in encrypted tab-delimited table.', |
18 | | - long_description=(setup_dir / "README.rst").read_text(), |
19 | | - long_description_content_type='text/x-rst', |
20 | | - author='Radek Brich', |
21 | | - |
22 | | - license='MIT', |
23 | | - url='https://github.com/rbrich/keybox', |
24 | | - packages=['keybox', 'keybox.backend'], |
25 | | - include_package_data=True, |
26 | | - entry_points={ |
27 | | - 'console_scripts': [ |
28 | | - 'keybox = keybox.main:main', |
29 | | - ], |
30 | | - }, |
31 | | - ext_modules=cythonize('cryptoref/cryptoref.pyx'), |
32 | | - setup_requires=['pytest-runner', 'Cython'], |
33 | | - install_requires=['pynacl', 'prompt_toolkit', 'blessed', 'pyperclip'], |
34 | | - tests_require=['pytest', 'argon2-cffi'], |
| 6 | + ext_modules=[Extension(name="cryptoref", sources=["cryptoref/cryptoref.pyx"])] |
35 | 7 | ) |
0 commit comments