Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
11250042
Unverified
Kaydet (Commit)
11250042
authored
Ara 01, 2018
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Ara 01, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #2193 from docker/update_setup_py
Update setup.py for modern pypi / setuptools
üst
5c748467
3381f7be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
release.sh
scripts/release.sh
+1
-9
setup.py
setup.py
+11
-7
No files found.
scripts/release.sh
Dosyayı görüntüle @
11250042
...
@@ -3,12 +3,6 @@
...
@@ -3,12 +3,6 @@
# Create the official release
# Create the official release
#
#
if
[
-z
"
$(
command
-v
pandoc 2> /dev/null
)
"
]
;
then
>
&2
echo
"
$0
requires http://pandoc.org/"
>
&2
echo
"Please install it and make sure it is available on your
\$
PATH."
exit
2
fi
VERSION
=
$1
VERSION
=
$1
REPO
=
docker/docker-py
REPO
=
docker/docker-py
GITHUB_REPO
=
git@github.com:
$REPO
GITHUB_REPO
=
git@github.com:
$REPO
...
@@ -37,11 +31,10 @@ if [[ $2 == 'upload' ]]; then
...
@@ -37,11 +31,10 @@ if [[ $2 == 'upload' ]]; then
fi
fi
pandoc
-f
markdown
-t
rst README.md
-o
README.rst
||
exit
1
echo
"##> sdist & wheel"
echo
"##> sdist & wheel"
python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel
if
[[
$2
==
'upload'
]]
;
then
if
[[
$2
==
'upload'
]]
;
then
echo
'##> Uploading sdist to pypi'
echo
'##> Uploading sdist to pypi'
twine upload dist/docker-
$VERSION
*
twine upload dist/docker-
$VERSION
*
fi
fi
\ No newline at end of file
setup.py
Dosyayı görüntüle @
11250042
...
@@ -55,24 +55,27 @@ with open('./test-requirements.txt') as test_reqs_txt:
...
@@ -55,24 +55,27 @@ with open('./test-requirements.txt') as test_reqs_txt:
long_description
=
''
long_description
=
''
try
:
with
codecs
.
open
(
'./README.md'
,
encoding
=
'utf-8'
)
as
readme_md
:
with
codecs
.
open
(
'./README.rst'
,
encoding
=
'utf-8'
)
as
readme_rst
:
long_description
=
readme_md
.
read
()
long_description
=
readme_rst
.
read
()
except
IOError
:
# README.rst is only generated on release. Its absence should not prevent
# setup.py from working properly.
pass
setup
(
setup
(
name
=
"docker"
,
name
=
"docker"
,
version
=
version
,
version
=
version
,
description
=
"A Python library for the Docker Engine API."
,
description
=
"A Python library for the Docker Engine API."
,
long_description
=
long_description
,
long_description
=
long_description
,
long_description_content_type
=
'text/markdown'
,
url
=
'https://github.com/docker/docker-py'
,
url
=
'https://github.com/docker/docker-py'
,
project_urls
=
{
'Documentation'
:
'https://docker-py.readthedocs.io'
,
'Changelog'
:
'https://docker-py.readthedocs.io/en/stable/change-log.html'
,
# flake8: noqa
'Source'
:
'https://github.com/docker/docker-py'
,
'Tracker'
:
'https://github.com/docker/docker-py/issues'
,
},
packages
=
find_packages
(
exclude
=
[
"tests.*"
,
"tests"
]),
packages
=
find_packages
(
exclude
=
[
"tests.*"
,
"tests"
]),
install_requires
=
requirements
,
install_requires
=
requirements
,
tests_require
=
test_requirements
,
tests_require
=
test_requirements
,
extras_require
=
extras_require
,
extras_require
=
extras_require
,
python_requires
=
'>=2.7, !=3.0.*, !=3.1.*, !=3.2.*'
,
zip_safe
=
False
,
zip_safe
=
False
,
test_suite
=
'tests'
,
test_suite
=
'tests'
,
classifiers
=
[
classifiers
=
[
...
@@ -89,6 +92,7 @@ setup(
...
@@ -89,6 +92,7 @@ setup(
'Programming Language :: Python :: 3.5'
,
'Programming Language :: Python :: 3.5'
,
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.7'
,
'Topic :: Software Development'
,
'Topic :: Utilities'
,
'Topic :: Utilities'
,
'License :: OSI Approved :: Apache Software License'
,
'License :: OSI Approved :: Apache Software License'
,
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment