forked from Dosugamea/NEXT-OCS-API-forPy
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add setup.cfg for a more readable package config + add test for syste…
…mtags + test.sh script to ease test
- Loading branch information
Showing
27 changed files
with
365 additions
and
104 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
This is Python wrapper for NextCloud's API had been made by… | ||
|
||
Main contributors | ||
````````````````` | ||
- Matěj Týč `@matejak <https://github.com/matejak>` active from 2018 | ||
- Danil Topchiy `@danil-topchiy <https://github.com/danil-topchiy>` active 2018-2019 | ||
|
||
|
||
Refactoring contributors | ||
```````````````````````` | ||
- Matěj Týč `@matejak <https://github.com/matejak>` active from 2018 | ||
- Danil Topchiy `@danil-topchiy <https://github.com/danil-topchiy>` active 2018-2019 | ||
- luffah `@luffah <https://github.com/luffah>` active 2021 | ||
|
||
|
||
Original code | ||
````````````` | ||
The repo was originally nammed NEXT-OCS-API-forPy in 2017 | ||
- どまお `@Dosugamea <https://github.com/Dosugamea>` | ||
|
||
|
||
Patches | ||
``````` | ||
- Hendrik Eckardt `@heck-gd <https://github.com/heck-gd>` | ||
- Anonymous `@xr-muc <https://github.com/xr-muc>` | ||
- tthmmts `@tthmmts <https://github.com/tthmmts>` | ||
- Dylann Cordel `@webu <https://github.com/webu>` `@DylannCordel <https://github.com/DylannCordel>` | ||
- scouderc `@scouderc <https://github.com/scouderc>` |
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,2 +1,3 @@ | ||
requests>=2.0.1 | ||
pytest>=4.6 | ||
six |
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,69 @@ | ||
[metadata] | ||
|
||
name = nextcloud | ||
version = 0.2 | ||
description= Python wrapper for NextCloud api | ||
long_description = file: README.md | ||
keywords = requests, api, wrapper, nextcloud, owncloud | ||
license = GPLv3 | ||
|
||
url = https://nextcloud-api.readthedocs.io | ||
project_urls = | ||
Documentation = https://nextcloud-api.readthedocs.io | ||
Source = https://github.com/EnterpriseyIntranet/nextcloud-API | ||
|
||
author = EnterpriseyIntranet | ||
author_email = [email protected] | ||
|
||
platforms = any | ||
|
||
classifiers = | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 3 | ||
Development Status :: 4 - Beta | ||
Environment :: Web Environment | ||
Intended Audience :: Developers | ||
Topic :: Internet :: WWW/HTTP | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
License :: OSI Approved :: GNU General Public License (GPL) | ||
Operating System :: OS Independent | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
|
||
install_requires = | ||
requests >=2.0.1, <3.0 | ||
six | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest >= 5.2 | ||
|
||
#[tool:pytest] | ||
#addopts = --verbose --pylint-rcfile=setup.cfg | ||
# --pylint --pycodestyle | ||
|
||
[pycodestyle] | ||
max-line-length=120 | ||
ignore=E4,E7,W3 | ||
|
||
# Configuration for pylint | ||
[MASTER] | ||
ignore=CVS | ||
good-names=logger,e,i,j,n,m,f,_ | ||
|
||
[MESSAGES CONTROL] | ||
disable=all | ||
enable=unused-import, | ||
fixme, | ||
useless-object-inheritance, | ||
unused-variable, | ||
unused-argument, | ||
unexpected-keyword-arg, | ||
string, | ||
unreachable, | ||
invalid-name, | ||
logging-not-lazy, | ||
unnecesary-pass |
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,38 +1,31 @@ | ||
import os | ||
import setuptools | ||
""" | ||
Setup script | ||
Usage : | ||
python setup.py build | ||
python setup.py install | ||
SETUPDIR = os.path.dirname(__file__) | ||
PKGDIR = os.path.join(SETUPDIR, 'src') | ||
For repository admin: | ||
python setup.py publish | ||
with open(os.path.join(SETUPDIR, 'README.md'), 'r') as f: | ||
long_description = f.read() | ||
For testing: | ||
test.sh | ||
""" | ||
import os | ||
import sys | ||
from setuptools import setup, find_packages | ||
|
||
# 'setup.py publish' shortcut. | ||
if sys.argv[-1] == 'publish': | ||
# see https://twine.readthedocs.io/en/latest/ | ||
os.system('%s %s sdist bdist_wheel' % (sys.executable, sys.argv[0])) | ||
os.system('twine upload dist/*') | ||
sys.exit() | ||
|
||
setuptools.setup( | ||
name='nextcloud', | ||
version='0.0.2', | ||
author='EnterpriseyIntranet', | ||
description="Python wrapper for NextCloud api", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/EnterpriseyIntranet/nextcloud-API", | ||
packages=setuptools.find_packages(PKGDIR), | ||
include_package_data=True, | ||
install_requires=[ | ||
'requests >= 2.0.1', | ||
'six' | ||
], | ||
package_dir={'': 'src'}, | ||
classifiers=[ | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Development Status :: 4 - Beta', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'License :: OSI Approved :: GNU General Public License (GPL)', | ||
"Operating System :: OS Independent", | ||
], | ||
setup( | ||
# see setup.cfg | ||
# some variables are defined here for retro compat with setuptools >= 33 | ||
package_dir = {'': 'src'}, | ||
packages=find_packages(where=r'./src'), | ||
long_description_content_type = 'text/markdown' | ||
) |
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
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
Oops, something went wrong.