-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from sovrasov/vs/upd_setup
Update setup script and license headers
- Loading branch information
Showing
5 changed files
with
40 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,49 @@ | ||
from setuptools import find_packages, setup | ||
''' | ||
Copyright (C) 2018-2023 Sovrasov V. - All Rights Reserved | ||
* You may use, distribute and modify this code under the | ||
* terms of the MIT license. | ||
* You should have received a copy of the MIT license with | ||
* this file. If not visit https://opensource.org/licenses/MIT | ||
''' | ||
|
||
from pathlib import Path | ||
|
||
readme = open('README.md').read() | ||
from setuptools import find_packages, setup | ||
|
||
VERSION = '0.7.1.2' | ||
|
||
requirements = [ | ||
'torch', | ||
] | ||
|
||
SETUP_DIR = Path(__file__).resolve().parent | ||
|
||
TEST_BASE_EXTRAS = (SETUP_DIR / 'test_requirements.txt').read_text() | ||
EXTRAS_REQUIRE = { | ||
'dev': TEST_BASE_EXTRAS, | ||
} | ||
|
||
setup( | ||
# Metadata | ||
name='ptflops', | ||
version=VERSION, | ||
author='Vladislav Sovrasov', | ||
author_email='sovrasov.vlad@gmail.com', | ||
url='https://github.com/sovrasov/flops-counter.pytorch', | ||
description='Flops counter for convolutional networks in' | ||
'pytorch framework', | ||
long_description=readme, | ||
long_description=(SETUP_DIR / 'README.md').read_text(), | ||
long_description_content_type='text/markdown', | ||
license='MIT', | ||
|
||
# Package info | ||
packages=find_packages(exclude=('*test*',)), | ||
packages=find_packages(SETUP_DIR, exclude=('*test*',)), | ||
package_dir={'ptflops': str(SETUP_DIR / 'ptflops')}, | ||
|
||
# | ||
zip_safe=True, | ||
install_requires=requirements, | ||
extras_require=EXTRAS_REQUIRE, | ||
python_requires='>=3.7', | ||
|
||
# Classifiers | ||
classifiers=[ | ||
'Programming Language :: Python :: 3', | ||
'MIT Software License :: Programming Language :: Python :: 3', | ||
], | ||
) |