-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't upload bare linux wheels, fixed long description
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import requests | ||
import os | ||
|
||
HERE = os.path.dirname(__file__) | ||
DIST_DIR = os.path.abspath(os.path.join(HERE, '..', 'dist')) | ||
REPO = 'jrast/littlefs-python' | ||
resp = requests.get('https://api.github.com/repos/%s/releases/latest' % REPO) | ||
|
||
if resp.status_code != 200: | ||
raise RuntimeError('Github API call failed!') | ||
|
||
data = resp.json() | ||
|
||
print('Release Tag:', data['tag_name']) | ||
|
||
print('Assets:') | ||
for e in data['assets']: | ||
print('Downloading', e['name']) | ||
r = requests.get(e['browser_download_url'], allow_redirects=True) | ||
if r.status_code != 200: | ||
raise RuntimeError('Downloading %s failed!' % e['name']) | ||
with open(os.path.join(DIST_DIR, e['name']), 'wb') as fh: | ||
fh.write(r.content) | ||
|
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,3 +1,4 @@ | ||
from os import path | ||
from setuptools import setup, find_packages | ||
from setuptools import Extension | ||
from Cython.Build import cythonize | ||
|
@@ -16,20 +17,28 @@ | |
) | ||
] | ||
|
||
|
||
|
||
setup_requires = [ | ||
'setuptools_scm', | ||
] | ||
|
||
HERE = path.abspath(path.dirname(__file__)) | ||
with open(path.join(HERE, 'README.rst'), encoding='utf-8') as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name='littlefs-python', | ||
url='https://github.com/jrast/littlefs-python', | ||
author='Jürg Rast', | ||
author_email='[email protected]', | ||
long_description=long_description, | ||
long_description_content_type='text/rst', | ||
use_scm_version=True, | ||
setup_requires=setup_requires, | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
ext_modules=cythonize(EXTENSIONS, language_level=3, annotate=False, | ||
ext_modules=cythonize(EXTENSIONS, language_level=3, annotate=False, | ||
compiler_directives={'embedsignature': True}), | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
|