Skip to content

Commit

Permalink
Use pbr for setup.py
Browse files Browse the repository at this point in the history
pbr automatically uses the version from git tags, and also uses the requirements.txt for dependencies, resulting in less redundancies.
  • Loading branch information
soerface committed May 5, 2019
1 parent 1da1859 commit b1e1b83
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ ben_cairo_test.py
media
manim.sublime-project
manim.sublime-workspace
.eggs/
build/
dist/
manim.egg-info/

primes.py
/media_dir.txt
16 changes: 16 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[metadata]
name = manim
author = Grant Sanderson
author-email= [email protected]
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
27 changes: 5 additions & 22 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
from setuptools import setup, find_namespace_packages
#!/usr/bin/env python

from setuptools import setup

setup(name='manim',
version='0.1.0',
description='Animation engine for explanatory math videos',
author='Grant Sanderson',
author_email='[email protected]',
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/**']},
setup(
setup_requires=['pbr'],
pbr=True,
)

0 comments on commit b1e1b83

Please sign in to comment.