Skip to content

Commit

Permalink
version bump to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KenyonY committed Dec 12, 2021
1 parent 35176a2 commit bfa50d0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 38 deletions.
17 changes: 16 additions & 1 deletion examples/Geo/bezier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import numpy as np

from examples.example_imports import *
from manim_express import *
from sparrow import clamp
Expand Down Expand Up @@ -69,10 +71,23 @@ def clip1(self):
self.play(self._value_tracker.increment_value, 1, run_time=5, rate_func=smooth)
self.wait(0.5)

def clip2(self):
x = np.linspace(0, 1, 100)
# self.plot(x, [smooth(i) for i in x])
# self.plot(x, [double_smooth(i) for i in x])
# self.plot(x, [lingering(i) for i in x])
self.plot(x, [exponential_decay(i) for i in x])
self.plot(x, [wiggle(i) for i in x])
self.show_plot()
self.hold_on()




# CONFIG.write_file = True
# CONFIG.gif = True
# CONFIG.color = WHITE

bezier = Bazier()
bezier.render()
# bezier.render()
bezier.clip2()
4 changes: 3 additions & 1 deletion manim_express/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
from .points import *
from sparrow.file_ops import yaml_load, ppath
from sparrow.color_str import rgb_string
import pkg_resources

plan_root_path = __file__

_version_config = yaml_load(ppath("version-config.yaml", __file__))
__version__= _version_config['version']
__version__ = pkg_resources.get_distribution(_version_config['name']).version

print(f"{rgb_string(_version_config['name'], color='#34A853')} version: {rgb_string(__version__, color='#C9E8FF')}")
36 changes: 1 addition & 35 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,51 +1,17 @@
#!/usr/bin/env python

from __future__ import print_function
from setuptools import setup, find_packages
from glob import glob
import os
from sparrow.file_ops import yaml_load
from setuptools import setup

pkgname = "manim_express"
pkgdir = pkgname
version_config = yaml_load(os.path.join(pkgdir, "version-config.yaml"))
name, version = version_config['name'], version_config['version']
#
# with open(glob('requirements.txt')[0], encoding='utf-8') as f:
# all_reqs = f.read().split('\n')
# install_requires = [x.strip() for x in all_reqs]
#
# with open("README.md", "r", encoding='utf-8') as fr:
# long_description = fr.read()

setup(
setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
pbr=True,
# name=name,
# version=version,
package_data={
pkgdir: [
'*.yaml', '*.yml',
],
},
# description=" Animation engine for explanatory math videos",
# long_description=long_description,
# long_description_content_type="text/markdown",
# author="K.y",
# author_email="beidongjiedeguang@gmail.com",
# url="https://github.com/beidongjiedeguang/manim-express",
# license="MIT",
# install_requires=install_requires,
# classifiers=[
# 'Operating System :: OS Independent',
# 'Intended Audience :: Developers',
# 'Intended Audience :: Science/Research',
# 'Topic :: Scientific/Engineering :: Artificial Intelligence',
# "Programming Language :: Python :: 3",
# "Programming Language :: Python :: 3.8",
# ],
# keywords=[
# 'Computer Vision', 'Mathematics', 'Physics', 'Machine Learning', 'Neural Networks',
# ],
# packages=find_packages()
)
1 change: 0 additions & 1 deletion tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def update_requirements():
def update_setup_cfg():
verson_config = yaml_load('./manim_express/version-config.yaml')
pkg_name = verson_config.get('name')
version_str = verson_config.get('version')
with open('setup.cfg', 'r', encoding='utf8') as fio:
lines = fio.readlines()
break_flag = 2
Expand Down
3 changes: 3 additions & 0 deletions workflow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from sparrow.version_ops import VersionControl
from tools import update_requirements, update_setup_cfg

Expand All @@ -7,6 +9,7 @@
vc.update_version()

update_setup_cfg()
os.system(f"git tag {vc.config['version']}")
# To keep manimlib latest.
update_requirements()
vc.update_readme(readme_path="./README.md", license="MIT")
Expand Down

0 comments on commit bfa50d0

Please sign in to comment.