Commit Graph

58 Commits

Author SHA1 Message Date
Greg Landrum
67f507a15c Some cmake cleanup work (#7720)
* cmake modernization

- get rid of some warnings
- switch to what I hope is the correct way of doing things
- bump min cmake version to 3.16
- bump min boost version to 1.70

This builds on linux

* remove some usages of PYTHON_EXECUTABLE

* remove old-school python usage from coverage tests

* remove unused CI file

* bump boost version for windows builds to 1.84

* still trying to get the ci builds working

* typo

* eventually the CI will work

* robustify some tests
2024-08-16 17:11:31 +02:00
Greg Landrum
ab152a4ed1 Switch over to using pytest to run the python tests (#5916)
* misc adaptations/modernizations
plus a few changes to allow pytest discovery

* get the recap unittests running

* pytest config updates

* all tests pass

* integrate the pytest stuff into ctest

* integrate Projects dir
better cmake integration

* ci build env updates

* ignore more files

* remove six.py

* cleanup UnitTestPandasTools

* cleanup pytest

* remove obsolete use of rdkit.six from doctests

* update release notes

* mysterious CI fix

* add conftest to remove some tests

* remove the old python-based testing infrastructure

---------

Co-authored-by: Ric <ricrogz@gmail.com>
2023-11-03 14:39:24 +01:00
Ric
880a8e5725 Reformat Python code for 2023.03 release (#6294)
* run yapf

* run isort

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2023-04-28 06:53:56 +02:00
Greg Landrum
24f1737839 Remove a bunch of Python2-related warts (#2315)
* remove all of the "from __future__" imports

* remove the first batch of rdkit.six imports/uses

* next step of rdkit.six removal

* removing xrange, range, and some maps

* next round of removals

* next round of cleanups

* fix inchi test

* last bits of "from rdkit.six" are gone

* and the last of the six stuff is gone

* strange importlib problem
2019-03-06 20:43:49 -05:00
gedeck
0626136f66 Replace optparse with argparse (#1835)
* 1194: Review assignments of range in Python code 

Task-Url: https://github.com/rdkit/rdkit/issues/1194
Either wrapped the range expression into a list or made sure that the
code is working with a range object.

* Refactored FeatFinderCLI script

* Revert "Refactored FeatFinderCLI script"

This reverts commit d9dcbce95d.

* Review rdkit.Chem.UnitTestSuppliers

* Replace optparse with argparse

* Change outDir default and fix variable name error
2018-05-01 15:25:24 +01:00
Brian Kelley
e54601c456 Updates python test runner to always use sys.executable (#1721) 2018-01-27 08:14:21 +01:00
gedeck
e9af48ffd7 Issue1071/yapf (#1078)
* Issue #1071: add yapf configuration file

* yapf formatting of Code directory

* yapf formatting of Contrib directory

* yapf formatting of Data directory

* yapf formatting of Docs directory

* yapf formatting of External directory

* yapf formatting of Projects directory

* yapf formatting of Regress directory

* yapf formatting of Scripts directory

* yapf formatting of Web directory

* yapf formatting of rdkit directory
2016-09-23 04:58:46 +02:00
Greg Landrum
1cde397acb merge commit 2015-10-30 02:58:46 +01:00
Greg Landrum
14558020c2 get the DbCLI tests working on windows 2015-10-26 07:25:11 +01:00
Andrew Dalke
ff5ba623a5 remove bare excepts but was not able to test them 2015-09-07 13:12:07 +02:00
Paolo Tosco
4f7482139f - fixed tests failing on Windows when retrieving sources through the
Windows git client, which converts line terminators to CR+LF
- added a conditional compilation clause to Code/RDBoost/import_array.h
  to avoid a compilation error on Windows with Python3
2015-02-22 21:49:40 +00:00
Greg Landrum
5710e90943 really fix the python2 problems this time? 2014-06-25 05:04:30 +02:00
Greg Landrum
32991b6608 should fix python2 compatibility problem 2014-06-25 04:34:19 +02:00
Greg Landrum
91f3076f3a clean up another batch of missed ResourceWarnings 2014-06-25 04:33:52 +02:00
Greg Landrum
47931754da fix DbCLI tests; includes fixing the pickling of SparseIntVects 2014-06-24 07:17:12 +02:00
Riccardo Vianello
3358ec5925 initial set of changes introducing python3 support 2014-06-17 18:26:41 +02:00
Greg Landrum
2659c929b5 Fixes #197 2014-01-16 07:36:24 -05:00
Greg Landrum
158c9b9e45 Fixes #136 2013-10-21 05:55:42 +02:00
Greg Landrum
80f1454bd7 Fixes #134 2013-10-21 05:44:50 +02:00
Greg Landrum
a41a5dfcd0 Fixes #130 2013-10-13 07:49:44 +02:00
Greg Landrum
59bbc60378 fix a bug with negation of the queries 2010-11-16 05:26:27 +00:00
Greg Landrum
7819cf84cb robustify 2009-07-29 06:25:00 +00:00
Greg Landrum
a67853445d switch to using integer primary keys in the db 2009-07-29 05:08:23 +00:00
Greg Landrum
bb4a49fa3a moving closer and closer to having this useful in other scripts 2009-07-28 19:07:52 +00:00
Greg Landrum
64b7dea99f put the smiles extraction back in CreateDb.py just in case it is needed later
otherwise minor cleanups
2009-07-24 10:16:45 +00:00
Greg Landrum
23b6665f09 refactoring and cleanup 2009-07-24 06:00:11 +00:00
Greg Landrum
d648ffba08 rearrange fingerprint generation 2009-07-13 11:50:48 +00:00
Greg Landrum
0c745b2b60 try to be smarter about arguments 2009-07-13 10:18:10 +00:00
Greg Landrum
40e6d352dc ongoing improvements 2009-07-13 08:55:01 +00:00
Greg Landrum
4323696481 cleaning up the DbCLI code 2009-07-09 04:29:12 +00:00
Greg Landrum
f977cbb9e3 redundant, so it was removed 2009-07-09 04:20:10 +00:00
Greg Landrum
f9c716684b robustify w.r.t. sqlalchemy 2009-06-27 15:40:10 +00:00
Greg Landrum
eb20435924 robustify when no error file is being used 2009-05-07 08:51:55 +00:00
Greg Landrum
33e7be513d we're going to call the package rdkit, not pyRDKit 2009-01-26 20:08:53 +00:00
Greg Landrum
d7e924456e update 2009-01-25 12:32:16 +00:00
Greg Landrum
494e98d009 make tests easier to run 2008-07-18 04:54:58 +00:00
Greg Landrum
93414b25ca update test 2008-06-11 09:09:51 +00:00
Greg Landrum
d0f518ec56 make the old fingerprints optional (and better supported) in the DbCLI stuff
continuing update of documentation
2008-05-15 04:33:40 +00:00
Greg Landrum
3383664c45 add the new RDK topological fps as well 2008-05-15 03:41:39 +00:00
Greg Landrum
0112549e51 robustify the handling of torsions and atom pairs pickles 2008-05-15 03:40:19 +00:00
Greg Landrum
ee66221de4 DbCLI updates:
1) make the fingerprint search stuff, at least with atom pairs, use the bulk similarity function
 2) fix some problems in the loader
2008-04-18 16:36:12 +00:00
Greg Landrum
6e7b01a133 grab smiles from db when it is there 2008-02-19 07:44:02 +00:00
Greg Landrum
41a6493633 add better prop support, bug fixes 2008-02-19 06:29:21 +00:00
Greg Landrum
554a58fa7a windows-proofing 2008-02-13 18:09:47 +00:00
Greg Landrum
f2ce922bd0 add --noSmiles option to speed things up (optionally, of course)
add --maxRowsCached option for dealing with larger data sets.
change default dbDir in search script.
2007-12-03 21:18:12 +00:00
Greg Landrum
afcc4c602d add smilesOut option 2007-11-23 15:29:50 +00:00
Greg Landrum
522bdada01 move most of the SDSearch functionality into SearchDb.py.
This can now to property- and/or substructure-driven searches
2007-10-27 08:10:54 +00:00
Greg Landrum
b79434b631 support noProps argument 2007-10-10 05:52:20 +00:00
Greg Landrum
a5ae3cee34 move more stuff into Chem.MolDb.Loader 2007-10-10 05:50:18 +00:00
Greg Landrum
8aa3437782 better error support using the new GetItemText() method of suppliers 2007-10-09 05:32:25 +00:00