CI & setup updates (#264)

This commit is contained in:
Quentame 2020-04-02 19:45:17 +02:00 committed by GitHub
parent 057ede8dde
commit d510b14570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 13 deletions

14
.gitignore vendored
View file

@ -1,3 +1,4 @@
# Python
*.py[cod] *.py[cod]
# C extensions # C extensions
@ -9,25 +10,30 @@
dist dist
build build
eggs eggs
.eggs
parts parts
bin bin
include
man
var var
sdist sdist
develop-eggs develop-eggs
.installed.cfg .installed.cfg
lib lib
lib64 lib64
.Python pip-wheel-metadata
# Installer logs # Logs
*.log
pip-log.txt pip-log.txt
# Unit test / coverage reports # Unit test / coverage reports
.coverage .coverage
.tox .tox
coverage.xml
nosetests.xml nosetests.xml
htmlcov/
test-reports/
test-results.xml
test-output.xml
# Translations # Translations
*.mo *.mo

View file

@ -13,7 +13,11 @@ cache:
before_install: before_install:
- pip install -r requirements_all.txt - pip install -r requirements_all.txt
- pip install -e . - pip install -e .
script: install:
- python setup.py install
- python setup.py sdist
before_script:
- pylint pyicloud tests - pylint pyicloud tests
- ./scripts/check_format.sh; - ./scripts/check_format.sh
script:
- py.test - py.test

View file

@ -1,23 +1,28 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
from codecs import open
REPO_URL = "https://github.com/picklepete/pyicloud"
VERSION = "0.9.6.1"
with open("requirements.txt") as f: with open("requirements.txt") as f:
required = f.read().splitlines() required = f.read().splitlines()
with open("README.rst", encoding="utf-8") as f:
long_description = f.read()
setup( setup(
name="pyicloud", name="pyicloud",
version="0.9.6.1", version=VERSION,
url="https://github.com/picklepete/pyicloud", url=REPO_URL,
description=( download_url=REPO_URL + "/tarball/" + VERSION,
"PyiCloud is a module which allows pythonistas to " description="PyiCloud is a module which allows pythonistas to interact with iCloud webservices.",
"interact with iCloud webservices." long_description=long_description,
),
maintainer="The PyiCloud Authors", maintainer="The PyiCloud Authors",
maintainer_email=" ", maintainer_email=" ",
license="MIT",
packages=find_packages(include=["pyicloud*"]), packages=find_packages(include=["pyicloud*"]),
install_requires=required, install_requires=required,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
license="MIT",
classifiers=[ classifiers=[
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
@ -27,8 +32,11 @@ setup(
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
], ],
entry_points={"console_scripts": ["icloud = pyicloud.cmdline:main"]}, entry_points={"console_scripts": ["icloud = pyicloud.cmdline:main"]},
keywords=["icloud", "find-my-iphone"],
) )