Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
fairscale
Commits
5a2b5720
"sgl-kernel/vscode:/vscode.git/clone" did not exist on "75df31b60ef0d26f5d4c5e0d98e5cdbe1ad8c0dd"
Unverified
Commit
5a2b5720
authored
Jul 31, 2020
by
msbaines
Committed by
GitHub
Jul 31, 2020
Browse files
[chore] setup a proper version number (#20)
parent
8e363567
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
CHANGELOG.md
CHANGELOG.md
+9
-0
fairscale/__init__.py
fairscale/__init__.py
+2
-0
setup.py
setup.py
+11
-0
No files found.
CHANGELOG.md
View file @
5a2b5720
# Changelog
All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [0.0.0] - 2020-07-31
-
Initial release.
fairscale/__init__.py
View file @
5a2b5720
...
...
@@ -3,6 +3,8 @@
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
__version__
=
"0.0.0"
################################################################################
# Import most common subpackages
################################################################################
...
...
setup.py
View file @
5a2b5720
...
...
@@ -3,6 +3,7 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import
os
import
re
import
warnings
import
setuptools
...
...
@@ -16,6 +17,15 @@ def fetch_requirements():
return
reqs
# https://packaging.python.org/guides/single-sourcing-package-version/
def
find_version
(
version_file_path
):
with
open
(
version_file_path
)
as
version_file
:
version_match
=
re
.
search
(
r
"^__version__ = ['\"]([^'\"]*)['\"]"
,
version_file
.
read
(),
re
.
M
)
if
version_match
:
return
version_match
.
group
(
1
)
raise
RuntimeError
(
"Unable to find version string."
)
extensions
=
[]
cmdclass
=
{}
...
...
@@ -43,6 +53,7 @@ if __name__ == "__main__":
setuptools
.
setup
(
name
=
"fairscale"
,
description
=
"fairscale: Utility library for large-scale and high-performance training."
,
version
=
find_version
(
"fairscale/__init__.py"
),
install_requires
=
fetch_requirements
(),
include_package_data
=
True
,
packages
=
setuptools
.
find_packages
(
exclude
=
(
"tests"
,
"tests.*"
)),
...
...
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