We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740cb7f commit 6bdb91aCopy full SHA for 6bdb91a
.ci/package-version.py
@@ -6,17 +6,18 @@
6
7
8
def main():
9
- setup_py = os.path.join(os.path.dirname(os.path.dirname(__file__)),
10
- 'setup.py')
+ version_file = os.path.join(
+ os.path.dirname(os.path.dirname(__file__)), 'uvloop', '__init__.py')
11
12
- with open(setup_py, 'r') as f:
+ with open(version_file, 'r') as f:
13
for line in f:
14
- if line.startswith('VERSION ='):
+ if line.startswith('__version__ ='):
15
_, _, version = line.partition('=')
16
print(version.strip(" \n'\""))
17
return 0
18
19
- print('could not find package version in setup.py', file=sys.stderr)
+ print('could not find package version in uvloop/__init__.py',
20
+ file=sys.stderr)
21
return 1
22
23
0 commit comments