Use pbr for setup.py

pbr automatically uses the version from git tags, and also uses the requirements.txt for dependencies, resulting in less redundancies.
This commit is contained in:
Soeren Wegener 2019-05-05 20:07:31 +02:00
parent 1da185953c
commit b1e1b831ea
No known key found for this signature in database
GPG key ID: 1CA5723999CABD50
3 changed files with 25 additions and 22 deletions

4
.gitignore vendored
View file

@ -17,6 +17,10 @@ ben_cairo_test.py
media media
manim.sublime-project manim.sublime-project
manim.sublime-workspace manim.sublime-workspace
.eggs/
build/
dist/
manim.egg-info/
primes.py primes.py
/media_dir.txt /media_dir.txt

16
setup.cfg Normal file
View file

@ -0,0 +1,16 @@
[metadata]
name = manim
author = Grant Sanderson
author-email= grant@3blue1brown.com
summary = Animation engine for explanatory math videos
description-file = README.md
description-content-type = text/x-md; charset=UTF-8
home-page = https://github.com/3b1b/manim
project_urls =
Bug Tracker = https://github.com/3b1b/manim/issues
Documentation = https://github.com/3b1b/manim
Source Code = https://github.com/3b1b/manim
license = MIT
[files]
packages = manimlib

View file

@ -1,25 +1,8 @@
from setuptools import setup, find_namespace_packages #!/usr/bin/env python
from setuptools import setup
setup(name='manim', setup(
version='0.1.0', setup_requires=['pbr'],
description='Animation engine for explanatory math videos', pbr=True,
author='Grant Sanderson',
author_email='grant@3blue1brown.com',
url='https://github.com/3b1b/manim',
license='MIT',
packages=find_namespace_packages(),
install_requires=[
'colour',
'numpy',
'Pillow',
'progressbar',
'scipy',
'tqdm',
'opencv-python',
'pycairo',
'pydub',
],
scripts=['manim.py', 'stage_scenes.py'],
package_data={'manimlib': ['*.tex', 'files/**']},
) )