Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
A
astor
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
astor
Commits
211302f4
Kaydet (Commit)
211302f4
authored
Ara 09, 2013
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add setuputils.
üst
d65ae3fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
.gitignore
.gitignore
+2
-0
setup.py
setup.py
+4
-6
setuputils.py
setuputils.py
+18
-0
No files found.
.gitignore
Dosyayı görüntüle @
211302f4
*.egg-info
build/
dist/
bad.txt
test_codegen_dump_1.txt
test_codegen_dump_2.txt
setup.py
Dosyayı görüntüle @
211302f4
...
...
@@ -2,22 +2,20 @@
from
setuptools
import
setup
from
setuputils
import
find_version
,
read
def
readdoc
():
with
open
(
'README.rst'
)
as
fobj
:
data
=
fobj
.
read
()
return
data
setup
(
name
=
'astor'
,
version
=
'0.2.2'
,
version
=
find_version
(
'astor/__init__.py'
)
,
description
=
'Read/rewrite/write Python ASTs'
,
long_description
=
read
doc
(
),
long_description
=
read
(
'README.rst'
),
author
=
'Patrick Maupin'
,
author_email
=
'pmaupin@gmail.com'
,
platforms
=
"Independent"
,
url
=
'https://github.com/pmaupin/astor.git'
,
packages
=
[
'astor'
],
py_modules
=
[
'setuputils'
],
license
=
"BSD"
,
classifiers
=
[
'Development Status :: 3 - Alpha'
,
...
...
setuputils.py
0 → 100644
Dosyayı görüntüle @
211302f4
import
codecs
import
os.path
import
re
def
read
(
*
parts
):
file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
parts
)
return
codecs
.
open
(
file_path
)
.
read
()
def
find_version
(
*
parts
):
version_file
=
read
(
*
parts
)
version_match
=
re
.
search
(
r'^__version__ = [\'"]([^\'"]*)[\'"]'
,
version_file
,
re
.
M
)
if
version_match
:
return
version_match
.
group
(
1
)
raise
RuntimeError
(
'Unable to find version string.'
)
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